﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WebShopDAL
{
    public class OrderRow
    {
        public int OrderRowId { get; set; }
        public int OrderId { get; set; }
        public int Quantity { get; set; }
        public int ArticleId { get; set; }

        public OrderRow(int quantity, int articleId, int orderRowId = 0, int orderId = 0)
        {
            OrderRowId = orderRowId;
            OrderId = orderId;
            Quantity = quantity;
            ArticleId = articleId;
        }

        public override string ToString()
        {
            return string.Format("{0},{1},{2},{3}", OrderRowId, OrderId, Quantity, ArticleId);
        }
    }
}
